package com.biz.primus.model.depot.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * DepotChangeMessageVo
 * 当deleted标识为true，删除es指定的门店编码
 * 当deleted标识为false，更新es门店
 *
 * @author JKLiues
 * @date 2017年11月18日
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class DepotChangeMessageVo implements Serializable {
    private static final long serialVersionUID = -3270982899204374610L;

    /**
     * 门店编码
     */
    private List<String> depotCodes;

    private Boolean deleted = false;

    public DepotChangeMessageVo(List<String> depotCodes) {
        this.depotCodes = depotCodes;
        this.deleted = false;
    }

}